package M;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-05-28
 * Time: 14:43
 */
//成员变量 构造方法 方法 tostring
public class Dog extends Animal{

    static {
        System.out.println("静态 Animal");
    }

    {
        System.out.println("实例代码块");
    }

    public Dog(String name,int age){
        super(name, age);
        System.out.println("构造 Dog");
    }

    public void bark(){
        System.out.println(this.name + "正在汪汪叫");
    }


}
